package my.diplom.dao.service;

import my.diplom.dao.IPriorityDAO;
import my.diplom.entity.Priority;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 10.11.2009
 * Time: 2:04:05
 * To change this template use File | Settings | File Templates.
 */
public class PriorityService {

    private IPriorityDAO priorityDAO;

    public IPriorityDAO getPriorityDAO() {
        return priorityDAO;
    }

    public void setPriorityDAO(IPriorityDAO priorityDAO) {
        this.priorityDAO = priorityDAO;
    }

    public List<Priority> getAll() {
        return priorityDAO.getAll();
    }

    public Priority getById(Long priorityId) {
        return priorityDAO.getById(priorityId);
    }
}
